<template>
<!-- 
  胡龙伟
  视频的精选页面
  2021/8/29
 -->


  <!-- <div class="container"> -->
  <div class="toubu">
    <!-- 头部 -->
    <div class="navBar">
      <i class="el-icon-search"></i>
      <div class="navText">
        <!-- <span class="zhishi ">知识区</span> -->
        <!-- <span class="jing active">精选</span> -->
        <router-link :class="{active:ishow==1}" class="jing" @click.native="ishow=1" to="../Video2">精选</router-link>
        <!-- <span class="huodong">活动</span> -->
        <router-link class="huodong" :class="{active:ishow==3}" @click.native="ishow=3" to="../Video3">活动</router-link>
      </div>
      <i class="el-icon-video-camera"></i>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'Video',
  data() {
    return {
      ishow:1
    }
  }
}
</script>

<style lang="less" scoped>
// .toubu {
//   width: 100%;
//   height: 100%;
//   // position: absolute;
//   // top: 0px;
//   // bottom: 0px;
//   background-color: #121212;
.navBar {
  position: fixed;
  z-index: 1;
  width: 100%;
  display: flex;
  height: 30px;
  line-height: 30px;
  // text-align: center;
  font-size: 14px;
  box-sizing: border-box;
  padding: 0 20px;
  color: rgb(255, 254, 254);
  .navText {
    margin: 0 auto;
    color: #9f9f9f;
    .active {
      color: #e7e7e7;
      border-bottom: 2px solid #bfa;
    }
    .zhishi {
      margin-right: 20px;
    }
    .huodong {
      margin-left: 20px;
    }
  }
  i {
    line-height: 30px;
  }
}
</style>
